<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com">
  <!--maxlength 最大字符长度
  value设置默认值  readonly只读-->
  用户名:<input type="text" name="username" maxlength="5" value="abc" readonly><br>
  密 码:<input type="password" name="password"><br>
  <!--value是单选框必须添加的属性，否则提交on
  checker默认选中-->
  性别:<input type="radio" name="gender" value="m" id="r1"><label for="r1">男</label>
  <input type="radio" name="gender" value="w" checked id="r2"><label for="r2">女</label><br>
<!--checkbox 多选框-->
  兴趣爱好:<input type="checkbox" name="hobby" value="cy" id="c1"><label for="c1">抽烟</label>
  <input type="checkbox" name="hobby" value="hj" id="c2"><label for="c2">喝酒</label>
  <input type="checkbox" name="hobby" value="tt" id="c3"><label for="c3">烫头</label><br>
  生日:<input type="date" name="birthday"><br>
  靓照:<input type="file" name="pic"><br>
  所在地:
<!--  value设置提交的内容   selected默认选中-->
  <select name="city">
  <option value="bj">北京</option>
  <option value="sh">上海</option>
  <option value="gz">广州</option>
  <option value="sz">深圳</option>
  <option value="ly" selected>洛阳</option>
</select><br>
  <input type="submit" value="注册">
</form>
</body>
</html>